package com.spzx.product.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spzx.common.core.web.domain.BaseEntity;
import java.io.Serializable;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品
 * </p>
 *
 * @author atguigu
 * @since 2025-02-24
 */
@Schema(description = "商品SPU")
@Getter
@Setter
@TableName("product")
public class Product extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "商品名称")
    private String name;

    @Schema(description = "品牌ID")
    private Long brandId;

    @Schema(description = "一级分类id")
    private Long category1Id;

    @Schema(description = "二级分类id")
    private Long category2Id;

    @Schema(description = "三级分类id")
    private Long category3Id;

    @Schema(description = "计量单位")
    private String unitName;

    @Schema(description = "轮播图")
    private String sliderUrls;

    @Schema(description = "商品规格json")
    private String specValue;

    @Schema(description = "状态：0-初始值，1-上架，-1-自主下架")
    private Integer status;

    @Schema(description = "品牌")
    @TableField(exist = false)
    private String brandName;

    @Schema(description = "一级分类")
    @TableField(exist = false)
    private String category1Name;

    @Schema(description = "二级分类")
    @TableField(exist = false)
    private String category2Name;

    @Schema(description = "三级分类")
    @TableField(exist = false)
    private String category3Name;

    @Schema(description = "商品sku列表")
    @TableField(exist = false)
    private List<ProductSku> productSkuList;

    @Schema(description = "详情图片列表")
    @TableField(exist = false)
    private List<String> detailsImageUrlList;
}
